<style>
    .form-group .required:before{
        content:'* ';
        color:red;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">



    <div class="form-group">
        <label for="c-name3" class="control-label col-xs-12 col-sm-2 required">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name3" data-rule="required" class="form-control" name="row[title]" type="text" value="{$data.title ?? ''}" placeholder="">

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2 required">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[type]', $typeList, $type, ['class'=>'form-control selectpicker','data-rule'=>'required'])}
        </div>
    </div>



    <div class="form-group fuwenben">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('descript')}：</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="content" class="form-control editor" name="row[descript]"  data-rule="" rows="16">{$data.descript ?? ''}</textarea>
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="row[id]" value="{$id}">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<script>

</script>
